<template>
  <div>
      <div v-for="i in user_list" :key="i.id">
          <h4>用户名:{{i.username}}</h4>
            <h4>用户等级:{{i.user_level}}</h4>
            <h4>积分:{{i.score}}</h4>
      </div>
  </div>
</template>

<script>
import axios from 'axios'
export default {
    data(){
        return{
            user_list:[],
            
        }
    },created(){
        axios.get('/api/login').then(resp=>{
            console.log(resp.data)
            this.user_list=resp.data
        }).catch(error=>{
            console.log(error)
        })
    }
}
</script>

<style>

</style>